/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.order.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 订单评论详情
 *
 * @author pigx code generator
 * @date 2023-11-29 15:29:23
 */
@Data
@TableName("order_comment_detail")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "订单评论详情")
public class OrderCommentDetail extends Model<OrderCommentDetail> {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@Schema(description = "id")
	private Long id;

	/**
	 * 评论id
	 */
	@Schema(description = "评论id")
	private Long orderCommentId;

	/**
	 * 评论类型 1: 买家评论 2: 卖家评论
	 */
	@Schema(description = "评论类型 1: 买家评论 2: 卖家评论")
	private String commentType;

	/**
	 * 是否是首评 1: 是 0: 否
	 */
	@Schema(description = "是否是首评 1: 是 0: 否")
	private String hasFirst;

	/**
	 * 评论内容
	 */
	@Schema(description = "评论内容")
	private String content;

	/**
	 * 评论图片
	 */
	@Schema(description = "评论图片")
	private String commentImages;

	/**
	 * 删除标记
	 */
	@TableLogic
	@Schema(description = "删除标记")
	private String delFlag;

	/**
	 * 创建时间
	 */
	@Schema(description = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	/**
	 * 创建人
	 */
	@Schema(description = "创建人")
	@TableField(fill = FieldFill.INSERT)
	private String createBy;

	/**
	 * 修改时间
	 */
	@Schema(description = "修改时间")
	@TableField(fill = FieldFill.UPDATE)
	private LocalDateTime updateTime;

	/**
	 * 更新人
	 */
	@Schema(description = "更新人")
	@TableField(fill = FieldFill.UPDATE)
	private String updateBy;

}
